﻿namespace Sidvall.WorkItemManager.Net.Services.V1
{
	public partial class UserConfiguration
	{
		#region Public Members

		#region Deserialize

		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
		public static UserConfiguration Deserialize(string value)
		{
			UserConfiguration item;

			try
			{
				item = Sidvall.Serialization.SerializerManager.Current.Deserialize<UserConfiguration>(value);
			}
			catch
			{
				item = null;
			}
			if (item == null)
			{
				item = new UserConfiguration()
				{
					UserConfigurationId = 1,
				};
			}
			return item;
		}

		#endregion

		#endregion
	}
}